<?php
header("Content-type:text/html;charset=utf-8");
header("Cache-Control:no-cache");

//用Cache-Control告诉浏览器有效期 5秒
//header("Cache-Control:max-age=10");//等同于Cache-Control:public, max-age=5
//$curr_time = date('Y-m-d H:i:s');
//echo '服务器时间:'.$curr_time;

//响应头Last-Modified
//$lastmodified = filemtime('./index.php');
//$lastmodifiedGMT = gmdate('D, d M Y H:i:s',$lastmodified). 'GMT';
//header("Last-Modified:$lastmodifiedGMT");

//响应头ETag


//返回304后，下面的内容不会向浏览器返回，而浏览器会使用之前的缓存
//date_default_timezone_set("Asia/Shanghai");
//$curr_time = date('Y-m-d H:i:s');
//echo '服务器时间:'.$curr_time;
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta id="plat_viewport" name="viewport" content="width=device-width, initial-scale=0.5, user-scalable=no, target-densitydpi=device-dpi">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="keywords" content="数英网,DIGITALING,Digital,Marketing,互动中国,DamnDigital,广告,营销,招聘,人才网,移动互联网,社交网络,市场营销,电子商务,数英,数英网,Digitaling">
    <meta name="description" content="数英网 DIGITALING是大中华区权威数字媒体及职业招聘社交平台,内容涵盖市场营销、广告传媒、创意设计、电商、移动互联网等各数字相关领域.致力于整合数字业界信息,受益于访问者数英网@Digitaling">
    <meta name="author" content="Eric">
    <meta name="copyright" content="www.antporters.com">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>蚂蚁搬运工</title>
    <link rel="shortcut icon" href="<?php echo base_url('file/images/mayi.ico') ?>" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url('file/css/wap.css') ?>">
</head>
<body>
    <section class="conbg index">
        <header class="banner" id="home">
            <img src="<?php echo base_url('file/images/banner_bg.png') ?>" width="100%" height="100%">
            <div class="banner_box clearfix">
                <img onclick="index.arrow_click(false)" class="banner_arrow_l" src="<?php echo base_url('file/images/arrow_w_l.png'); ?>" width="32px">
                <ul>
                    <?php for($i = 0; $i < count($projects); $i++) { ?>
                        <li <?php if ($i != 0 ) {echo 'style="visibility: hidden"';} ?>>
                            <a href="<?php echo base_url('project/detail/'.$projects[$i]['proid']); ?>">
                                <div class="banner_div">
                                    <img src="<?php echo base_url('images/'.$projects[$i]['cover']); ?>" width="320px" height="200px">
                                    <span><?php echo $projects[$i]['title']; ?></span>
                                </div>
                            </a>
                        </li>
                    <?php } ?>
                </ul>
                <img onclick="index.arrow_click(true)" class="banner_arrow_r" src="<?php echo base_url('file/images/arrow_w_r.png'); ?>" width="32px">
            </div>

            <div class="banner_text substr_4">
                <p class="banner_title">“； 闲 如通其术，则吾不能知矣。”</p>
                <img src="<?php echo base_url('file/images/nav_img.png') ?>" style="width: 40px; height: 40px; position: absolute; left: 0; bottom: 0;">
                <p class="banner_subTit">文儒近臣不当崇尚技能，师法夷裔。</p>
            </div>
        </header>
        <nav id="nav" class="nav">

            <?php
                if (get_cookie('uid') == null) {
                    echo '<img src="'.base_url('file/images/nav_img.png').'" width="30px">';
                } else {
                    echo '<img src="'.base_url('images/header/'.get_cookie('logo')).'" width="30px">';
                    echo '<a href="'. base_url('user/uid/'.get_cookie('uid')) .'" class="login_user"><span>'.get_cookie('name').'</span></a>';
                }
            ?>

            <ul class="nav_title">
                <li><a href="#home" class="topLink">首 页</a></li>
                <li><a href="#service" class="topLink">技 能</a></li>
<!--                <li><a href="#ourteam" class="topLink">我们团队</a></li>-->
                <li><a href="#ourwork" class="topLink">我们相册</a></li>
                <li><a href="#blog" class="topLink">博 客</a></li>
                <li><a href="<?php echo base_url('movie/movielist') ?>">电 影</a></li>
                <li><a href="#users" class="topLink">用户</a></li>
                <li><a href="#about" class="topLink">关 于</a></li>
                <li><a href="#contact" class="topLink">联 系</a></li>
                <li><a href="http://wiki.antporters.com" class="topLink">WIKI</a></li>
                <?php
                    if (get_cookie('uid') == null) {
                        echo "<li><a href='" . base_url('account') . "' class='topLink'>登 录</a></li>";
                    } else {
                        echo '<li><a onclick="account.logout()" class="topLink">退出登录</a></li>';
                    }
                ?>

            </ul>
        </nav>

        <div class="content">
            <!-- -->
            <div class="con_ser" id="service">
                <div class="con_ser_top">
                    <a href="<?php echo base_url('skill') ?>">
                        <h1 class="con_title">个人技能</h1>
                    </a>
                    <span class="con_line bg_blue"></span>
                    <p class="con_subTitle">指掌握并能运用专门技术的能力。指技术、能力。明主犹 造父 也，善治其民，度量其力，审其技能，故立功而民不困伤。</p>
                </div>
                <div class="con_ser_bot">
                    <a class="con_ser_item" href="<?php echo base_url('skill') ?>">
                        <img src="<?php echo base_url('file/images/nav_ser_icon1.png') ?>" width="38px">
                        <h1>iOS</h1>
                        <p>2014年-目前，从事iOS独立开发</p>
                    </a>

                    <a class="con_ser_item" href="<?php echo base_url('skill') ?>">
                        <img src="<?php echo base_url('file/images/nav_ser_icon2.png') ?>" width="38px">
                        <h1>Android</h1>
                        <p>2016年-目前，从事Android独立开发</p>
                    </a>

                    <a class="con_ser_item" href="<?php echo base_url('skill') ?>">
                        <img src="<?php echo base_url('file/images/nav_ser_icon3.png') ?>" width="38px">
                        <h1>Html</h1>
                        <p>2017年-目前，学习Html中...</p>
                    </a>
                </div>
            </div>
            <!-- -->
            <div class="con_video">
                <img class="bg" src="<?php echo base_url('file/images/con_video_bg.png') ?>" width="100%;" height="100%">
                <div>
                    <img class="tag" src="<?php echo base_url('file/images/nav_img.png') ?>" height="38px">
                    <h1>观看 视频<br/>介绍我们的服务</h1>
                </div>
            </div>
            <!-- -->

            <div class="con_blog clearfix" id="blog">
                <a href="<?php echo base_url('project/prolist') ?>">
                    <h1 class="con_title" style="margin-top: 40px;">博客</h1>
                </a>
                <span class="con_line bg_dark_pur"></span>
                <p class="con_subTitle">博客，仅音译，英文名为Blogger,为Web Log的混成词。它的正式名称为网络日记；又音译为部落格或部落阁等，是一种通常由个人管理、不定期张贴新的文章的网站。博客上的文章通常根据张贴时间，以倒序方式由新到旧排列。许多博客专注在特定的课题上提供评论或新闻，其他则被作为比较个人的日记。</p>

                <div class="blog_con">
                    <a href="<?php echo base_url('project/detail/'.$projects[1]['proid']); ?>">
                        <div class="blog_item f_l">
                            <img class="cover" src="<?php echo base_url('images/'.$projects[1]['cover']); ?>" width="397px">
                            <div class="info">
                                <div class="date">
                                    <span class="date_month">5月</span>
                                    <span class="date_day">08</span>
                                    <span class="date_line"></span>
                                    <img class="date_zan" src="<?php echo base_url('file/images/zan_icon.png') ?>" width="14px" height="14px">
                                    <span class="data_num">145</span>
                                </div>
                                <div class="con">
                                    <h1 class="substr_2"><?php echo $projects[1]['title']; ?></h1>
                                    <span class="substr_1">Brand: Coca-Cola 可口可乐</span>
                                    <p class="substr_3"><?php echo $projects[1]['prodesc']; ?></p>
                                    <div class="blog_tool">
                                        <img src="<?php echo base_url('file/images/arrow_red.png') ?>" width="15px">
                                        <span>详情</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </a>
                    <a href="<?php echo base_url('project/detail/'.$projects[2]['proid']); ?>">
                        <div class="blog_item f_r">
                            <img class="cover" src="<?php echo base_url('images/'.$projects[2]['cover']); ?>" width="397px">
                            <div class="info">
                                <div class="date">
                                    <span class="date_month">7月</span>
                                    <span class="date_day">22</span>
                                    <span class="date_line"></span>
                                    <img class="date_zan" src="<?php echo base_url('file/images/zan_icon.png') ?>" width="14px" height="14px">
                                    <span class="data_num">682</span>
                                </div>
                                <div class="con">
                                    <h1 class="substr_2"><?php echo $projects[2]['title']; ?></h1>
                                    <span class="substr_1">Brand: Coca-Cola 可口可乐</span>
                                    <p class="substr_3 substr_3"><?php echo $projects[2]['prodesc']; ?></p>
                                    <div class="blog_tool">
                                        <img src="<?php echo base_url('file/images/arrow_red.png') ?>" width="10px">
                                        <span>详情</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>

                <a href="<?php echo base_url('project/prolist') ?>">
                    <img class="blog_add" src="<?php echo base_url('file/images/more_icon.png') ?>" width="28px">
                    <span class="blog_add_tit">查看 更多</span>
                </a>
            </div>



            <!-- -->
<!--            <div class="con_skill">-->
<!--                <a>-->
<!--                    <h1 class="con_title">技能</h1>-->
<!--                </a>-->
<!--                <span class="con_line bg_yello"></span>-->
<!--                <p class="con_subTitle">技艺、技巧、技术、本领、本事、能力、才能、才具、才力、妙技、工夫、手艺、身手、才干</p>-->
<!--            </div>-->
            <!-- -->

            <div class="con_work" id="ourwork">
                <div class="con_work_1">
                    <a href="<?php echo base_url('photo') ?>">
                        <h1 class="con_title">我们的相册</h1>
                    </a>
                    <span class="con_line bg_purple"></span>
                    <p class="con_subTitle">项目是指一系列独特的、复杂的并相互关联的活动，这些活动有着一个明确的目标或目的，必须在特定的时间、预算、资源限定内，依据规范完成。</p>


                </div>
                <div class="con_work_2 clearfix">
                    <div class="center_div clearfix">
                        <?php foreach($dirs as $item) { ?>
                            <a href="<?php echo base_url('photo/skim/'.$item['name'].'/'.$item['picid']) ?>">
                                <div class="img_box">
                                    <?php if (strlen($item['cover']) > 0) { ?>
                                        <img class="con_work_img" src="<?php echo base_url('photos/'.$item['name'].'/'.$item['cover']) ?>">
                                    <?php } else { ?>
                                        <img class="con_work_img" src="<?php echo base_url('file/images/blog_img2.png') ?>">
                                    <?php } ?>
                                    <p><?php echo $item['name']; ?></p>
                                </div>
                            </a>
                        <?php } ?>
                    </div>
                </div>
            </div>
            <!-- work-->

            <div class="con_poly">
                <div class="con_poly_sel clearfix">
                    <a>
                        <img class="arrow m_r_10" src="<?php echo base_url('file/images/arrow_l.png') ?>">
                        <span class="sel_btn">PREV</span>
                    </a>
                    <img class="sel_img" src="<?php echo base_url('file/images/nav_ser_icon3.png') ?>" width="28px">
                    <a>
                        <span class="sel_btn">NEXT</span>
                        <img class="arrow m_l_10" src="<?php echo base_url('file/images/arrow_r.png') ?>">
                    </a>
                </div>
                <div class="con_poly_title">
                    <a href="<?php echo base_url('project/prolist') ?>">
                        <h1 class="con_title" style="margin-top: 20px">我们的项目</h1>
                    </a>

                    <div class="con_work_con clearfix">
                        <a class="con_work_item" href="<?php echo base_url('project/prolist') ?>">
                            <img src="<?php echo base_url('file/images/nav_ser_icon1.png') ?>" width="28px">
                            <p>All</p>
                        </a>
                        <a class="con_work_item" href="<?php echo base_url('project/prolist') ?>">
                            <img src="<?php echo base_url('file/images/nav_ser_icon2.png') ?>" width="28px">
                            <p>Web</p>
                        </a>
                        <a class="con_work_item" href="<?php echo base_url('project/prolist') ?>">
                            <img src="<?php echo base_url('file/images/nav_ser_icon3.png') ?>" width="28px">
                            <p>iOS</p>
                        </a>
                        <a class="con_work_item" href="<?php echo base_url('project/prolist') ?>">
                            <img src="<?php echo base_url('file/images/nav_ser_icon1.png') ?>" width="28px">
                            <p>Android</p>
                        </a>
                        <a class="con_work_item" href="<?php echo base_url('project/prolist') ?>">
                            <img src="<?php echo base_url('file/images/nav_ser_icon2.png') ?>" width="28px">
                            <p>Other</p>
                        </a>
                    </div>

                    <p class="con_subTitle" style="margin-top: 10px;">主要，拼音是zhǔ yào，是指事物中关系最大、起决定作用的。出自《请令长贰自举属官札子》。也意为把握事物的关键。宋 曾巩《请令长贰自举属官札子》：“分别淑慝，以执中主要，信行其赏罚。”</p>
                </div>

                <a href="<?php echo base_url('project/detail/'.$projects[0]['proid']); ?>">
                    <div class="con_poly_con">
                        <img class="poly_img" src="<?php echo base_url('images/'.$projects[0]['cover']); ?>" width="464px">
                        <div class="poly_con">
                            <h1><?php echo $projects[0]['title']; ?></h1>
                            <p><?php echo $projects[0]['prodesc']; ?></p>
                            <div class="poly_share">
                                <span class="share_btn">进入</span>
                                <img src="<?php echo base_url('file/images/share_plat3.png') ?>" width="20px">
                                <img src="<?php echo base_url('file/images/share_plat2.png') ?>" width="20px">
                                <img src="<?php echo base_url('file/images/share_plat1.png') ?>" width="20px">
                            </div>
                        </div>
                    </div>
                </a>
            </div>

            <!-- poly-->
<!--            <div class="con_team" id="ourteam">-->
<!--                <div class="con_team_1">-->
<!--                    <a href="--><?php //echo base_url('team') ?><!--">-->
<!--                        <h1 class="con_title" style="color: white">我们团队</h1>-->
<!--                    </a>-->
<!--                    <span class="con_line bg_dark_blue"></span>-->
<!--                    <p class="con_subTitle">团队（Team）是由基层和管理层人员组成的一个共同体，它合理利用每一个成员的知识和技能协同工作，解决问题，达到共同的目标。</p>-->
<!--                    <div class="con_team_users clearfix">-->
<!--                        --><?php
//                        $arr = array(
//                            "Eric",
//                            "Peter",
//                            "Will Nguyen"
//                        );
//                        ?>
<!--                        --><?php //for($i = 0; $i < 3; $i++) { ?>
<!--                            <div class="con_team_item">-->
<!--                                <img class="team_header" src="--><?php //echo base_url('file/images/team_user.png') ?><!--" width="90px;">-->
<!--                                <div class="con_team_con">-->
<!--                                    <p class="con_team_name">--><?php //echo $arr[$i]; ?><!--</p>-->
<!--                                    <span class="con_team_desc">移动应用开发</span>-->
<!--                                    <div class="con_team_tool">-->
<!--                                        <div class="con_team_tool_box">-->
<!--                                            <div class="clearfix">-->
<!--                                                <img src="--><?php //echo base_url('file/images/code_wechat.jpg') ?><!--" width="100%">-->
<!--                                            </div>-->
<!--                                            <img class="con_team_tool_plat" src="--><?php //echo base_url('file/images/share_plat1.png') ?><!--" height="22px">-->
<!--                                        </div>-->
<!--                                        <div class="con_team_tool_box">-->
<!--                                            <div class="clearfix">-->
<!--                                                <img src="--><?php //echo base_url('file/images/code_qq.jpg') ?><!--" width="100%">-->
<!--                                            </div>-->
<!--                                            <img class="con_team_tool_plat" src="--><?php //echo base_url('file/images/share_plat2.png') ?><!--" height="22px">-->
<!--                                        </div>-->
<!--                                        <div class="con_team_tool_box">-->
<!--                                            <div class="clearfix"></div>-->
<!--                                            <img class="con_team_tool_plat" src="--><?php //echo base_url('file/images/share_plat3.png') ?><!--" height="22px">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        --><?php //} ?>
<!--                    </div>-->
<!--                </div>-->
<!--                <div class="con_team_2">-->
<!--                    <div class="con_team_num">-->
<!--                        <h1 class="con_num_title">开发团队</h1>-->
<!--                        <p class="con_num_subtit">负责开发移动、桌面应用</p>-->
<!--                    </div>-->
<!--                    <div class="con_team_num">-->
<!--                        <h1 class="con_num_title">设计团队</h1>-->
<!--                        <p class="con_num_subtit">负责设计移动、桌面应用UI界面</p>-->
<!--                    </div>-->
<!--                    <div class="con_team_num">-->
<!--                        <h1 class="con_num_title">销售团队</h1>-->
<!--                        <p class="con_num_subtit">协调客户与公司的商业合作</p>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->

            <!-- client-->
            <div class="con_client" id="users">
                <div class="con_client_1">
                    <a href="<?php echo base_url('team') ?>">
                        <h1 class="client_tit">注册用户</h1>
                    </a>
                    <span class="con_line bg_white"></span>
                </div>
                <div class="con_client_2">
                    <div class="client_users">
                        <?php for($i = 0; $i < count($users); $i++) { ?>
                            <a href="<?php echo base_url('user/uid/'.$users[$i]['uid']); ?>">
                                <img class="<?php if ($i != 2) {echo 'client_user_s';} else {echo 'client_user_b';}; ?>" src="<?php echo base_url('images/header/'.$users[$i]['logo']); ?>" width="<?php if ($i != 2) {echo '40px';} else {echo '76px';}; ?>">
                            </a>

                        <?php } ?>
                    </div>
                    <div class="client_con">
                        <p class="con_subTitle">中国古代户籍制度中的一类户口﹐与主户相对而言﹐泛指非土著的住户。
                            它不是一个统一的阶级或阶层﹐其中包括有地主﹑自耕农﹑城市小商贩﹑无业游民。</p>
                        <span>客户至上</span>
                    </div>
                </div>
            </div>


            <!-- blog-->
            <div class="con_about" id="about">
                <a href="<?php echo base_url('about') ?>">
                    <h1 class="con_title">关于</h1>
                </a>
                <span class="con_line bg_red"></span>
                <a href="<?php echo base_url('about') ?>">
                    <p class="con_subTitle">iOS是由苹果公司开发的移动操作系统[1]  。苹果公司最早于2007年1月9日的Macworld大会上公布这个系统，最初是设计给iPhone使用的，后来陆续套用到iPod touch、iPad以及Apple TV等产品上。iOS与苹果的Mac OS X操作系统一样，属于类Unix的商业操作系统。</p>
                </a>
                <span class="con_dark_line_h"></span>
                <span class="con_dark_line_v"></span>
                <a class="circle_text">2014</a>
                <!-- 详情点击-->
                <a class="con_about_con clearfix" href="<?php echo base_url('about') ?>">
                    <div class="con_about_div">
                        <h1>In 2014 we grown up</h1>
                        <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab.</p>
                    </div>
                </a>
                <span class="con_dark_line_h"></span>
                <span class="con_dark_line_v"></span>
                <a class="circle_text">2013</a>
                <p class="con_about_bot_title">Android 2013</p>
                <a href="<?php echo base_url('about') ?>">
                    <p class="con_about_bot_subtit">Android是一种基于Linux的自由及开放源代码的操作系统，主要使用于移动设备，如智能手机和平板电脑，由Google公司和开放手机联盟领导及开发。尚未有统一中文名称，中国大陆地区较多人使用“安卓”或“安致”。</p>
                </a>
            </div>
            <!-- contact-->
            <div class="con_contact" id="contact">
                <h1 class="con_title" style="color: white">联系我们</h1>
                <span class="con_line bg_white"></span>
                <div class="local_info">
                    <a class="local_item">
                        <img src="<?php echo base_url('file/images/contact_loca.png') ?>" height="28px">
                        <span>宝山区大场镇沪太路1508弄</span>
                    </a>
                    <a class="local_item">
                        <img src="<?php echo base_url('file/images/contact_num.png') ?>" height="28px">
                        <span>+86 1001011</span>
                    </a>
                    <a class="local_item">
                        <img src="<?php echo base_url('file/images/contact_email.png') ?>" height="28px">
                        <span>278992708@qq.com</span>
                    </a>
                </div>

                <div class="contact_msg">
                    <span class="msg_title">请输入</span>
                    <div class="contact_info m_t_25">
                        <div class="contact_item f_l">
                            <span class="msg_item_tit">姓名</span>
                            <input type="text">
                        </div>
                        <div class="contact_item f_r">
                            <span class="msg_item_tit">邮箱</span>
                            <input type="text">
                        </div>
                    </div>
                    <div class="contact_info m_t_15">
                        <div class="contact_item_full">
                            <span class="msg_item_tit">信息</span>
                            <input type="text">
                        </div>
                    </div>
                    <button>发送</button>
                </div>

                <div class="contact_other">
                    <div class="contact_tag">
                        <img src="<?php echo base_url('file/images/contact_icon1.png') ?>" width="12px" style="border-left: none">
                        <img src="<?php echo base_url('file/images/contact_icon2.png') ?>" width="12px">
                        <img src="<?php echo base_url('file/images/contact_icon3.png') ?>" width="12px">
                        <img src="<?php echo base_url('file/images/contact_icon4.png') ?>" width="12px">
                    </div>
                    <span>
                        © 2017 蚂蚁搬运工. All rights reserved.<br/>Design by Enginethemes. Develop Eric
                    </span>
                </div>
            </div>
        </div>
    </section>

    <script src="<?php echo base_url('file/js/wap.js') ?>" type="text/javascript" charset="utf-8"></script>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
    <script src="<?php echo base_url('file/js/jquery.timers-1.2.js') ?>" type="text/javascript"></script>
    <script>
        index.nav(450);
        index.banner();
        index.banner_hover();
        index.video_hover();
        index.skill_hover();
        index.title_hover();
        index.year_hover();
        index.about_hover();
        index.pro_hover();
        index.plate_hover();
    </script>
</body>
</html>